package store.lunangangster.engine.impl.entity;

import java.util.HashMap;
import java.util.Map;

public class MesListenerEntityImpl extends EntityImpl implements
    MesListenerEntity {

  protected String executionId;
  protected String processInstanceId;
  protected String processDefinitionId;
  protected String messageId;

  @Override
  public String getExecutionId() {
    return executionId;
  }

  @Override
  public String getProcessInstanceId() {
    return processInstanceId;
  }

  @Override
  public String getProcessDefinitionId() {
    return processDefinitionId;
  }

  @Override
  public String getMessageId() {
    return messageId;
  }

  @Override
  public void setExecutionId(String executionId) {
    this.executionId = executionId;
  }

  @Override
  public void setProcessInstanceId(String processInstanceId) {
    this.processInstanceId = processInstanceId;
  }

  @Override
  public void setProcessDefinitionId(String processDefinitionId) {
    this.processDefinitionId = processDefinitionId;
  }

  @Override
  public void setMessageId(String messageId) {
    this.messageId = messageId;
  }

  @Override
  public Object getPersistState() {
    Map<String, Object> map = new HashMap<>();
    map.put("executionId", executionId);
    map.put("processInstanceId", processInstanceId);
    map.put("processDefinitionId", processDefinitionId);
    map.put("messageId", messageId);
    return map;
  }

}
